import pytest
params = [
    ['a', 'aaa'],
    ['b', 'bbb', 'bbb'],
    ['c', 'cccc', 'cccc', 'cccc'],
]

class Test_A:

    @pytest.mark.parametrize("indata",params)
    def test_a(self, indata):
        print("******")
        print(indata)

    # def b(self, p1, p2):
    #     print(p1,p2)
    # def c(self, p1, p2, p3):
    #     print(p1, p2,p3)
# obj = A()
# for p in params:
#     func = getattr(obj,p[0])
#     func(*p[1:])
if __name__ == '__main__':
    pytest.main(["11.py","-s"])